package homework2;

public class Soccer implements IBaseSport, ITeam, IRanked {
	
	int rank;
	int numPlayers;
	String name;
	String captain;
	
	public Soccer( String name, int rank, int numPlayers, String captain ){
		this.name = name;
		this.rank = rank;
		this.captain = captain;
		this.numPlayers = numPlayers;
	}
	
	public int getRank() {
		return this.rank;
	}
	
	public String getCaptain(){
		return this.captain;
	}
	
	public int getPlayerCount() {
		return this.numPlayers;
	}

	public boolean hasBetterRanking(IRanked rank) {
		return this.getRank() < rank.getRank();
	}
	
}
